package com.oa.ylms.apps.business.regulations;

import java.util.List;

import com.oa.ylms.apps.entity.archives.StaffInfoValue;
import com.oa.ylms.apps.entity.regulations.RegulationInfoValue;

public interface IRegulationInfoService {

	/**
	private Integer regulationId;
	private RegulationCategoryValue regulationCategory;
	private StaffInfoValue staffInfo;
	private String title;
	private String content;
	private Date publishTime;
	 */
	    public int addRegulationInfo( int categoryId,String title,String content,StaffInfoValue staffInfo) throws Exception;
	    
	    public boolean modifyRegulationInfo(int regulationId, int categoryId, String title,String content,StaffInfoValue staffInfo) throws Exception;
	    
	    public boolean deleteRegulationInfo(String regulationIds) throws Exception;
		
		public RegulationInfoValue queryRegulationById(int regulationId) throws Exception;

		public List<RegulationInfoValue> queryTopRegulation(int topNum) throws Exception;

		public List<RegulationInfoValue> queryRegulationsWithPage(Integer categoryId,String publishTime,String title, String staffName, int rows, int pageNo) throws Exception;
		
		public int countTPages(Integer categoryId,String publishTime, String title, String staffName, int rows)throws Exception;
		
		public int getTotalNumber () throws Exception;
}
